<include file="Public/common" />
<block>
    <link rel="stylesheet" href="__STATIC__/layui/css/layui.css"  media="all">
    <style>
        .col-xs-3{margin-top:5px;}
        th{text-align: center;}
    </style>
</block>
<block name="content">
    <div class="page-header"><h1>首页 &gt;财务管理  >  结算中心  >  供应商线路结算  >  供应商结算表</h1></div>

    <form action="" class="form-inline " method="get" style="margin-left:10px;" >

        <div class="form-group">
            <label for="group_num">团号</label>
            <input type="text" class="" name="group_num" id="group_num" placeholder="团号" value="{$post.group_num}">
        </div>
        <div class="form-group">
            <label for="group_num">运营商编号</label>
            <input type="text" class="" name="operator_sn" id="operator_sn" placeholder="运营商编号" value="{$post.operator_sn}">
        </div>
        <div class="form-group">
            <label for="operator_name">运营商名称</label>
            <input type="text" class="" name="operator_name" id="operator_name" placeholder="运营商名称" value="{$post.operator_name}">
        </div>
        <div class="form-group">
            <label for="operator_name">结算时间</label>
            <input type="text" class="" name="start_time" id="start_time" placeholder="开始日期" value="{$post.start_time}" readonly>
            至
            <input type="text" class="" name="end_time" id="end_time" placeholder="结束日期" value="{$post.end_time}" readonly>
        </div>
        <button type="submit" class="btn btn-primary">查询</button>
    </form>

    <div class="col-xs-12"  style="margin-top:10px;">
        <button class="btn btn-primary btn-xs pull-right" type="button" id="dropdownMenu1" data-toggle="dropdown">
            筛选
            <span class="caret"></span>
        </button>
        <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="dropdownMenu1" style="padding:10px;">
            <li><input type="checkbox" class="filtrate" checked value="1" id="filtrate_1"> <label for="filtrate_1">ID</label> </li>
            <li><input type="checkbox" class="filtrate"checked value="2" id="filtrate_2"><label for="filtrate_2">线路名称</label></li>
            <li><input type="checkbox" class="filtrate"checked value="3" id="filtrate_3"><label for="filtrate_3">团队类型</label></li>
            <li><input type="checkbox" class="filtrate"checked value="4" id="filtrate_4"><label for="filtrate_4">线路编号</label></li>
            <li><input type="checkbox" class="filtrate"checked value="13" id="filtrate_13"><label for="filtrate_13">团号</label></li>
            <li><input type="checkbox" class="filtrate"checked value="5" id="filtrate_5"><label for="filtrate_5">运营商</label></li>
            <li><input type="checkbox" class="filtrate"checked value="6" id="filtrate_6"><label for="filtrate_6">下单时间</label></li>
            <li><input type="checkbox" class="filtrate"checked value="7" id="filtrate_7"><label for="filtrate_7">实际收客人数</label></li>
            <li><input type="checkbox" class="filtrate"checked value="8" id="filtrate_8"><label for="filtrate_8">结算金额(单价)</label></li>
            <li><input type="checkbox" class="filtrate"checked value="9" id="filtrate_9"><label for="filtrate_9">其他费用</label></li>
            <li><input type="checkbox" class="filtrate"checked value="10" id="filtrate_10"><label for="filtrate_10">总结算金额</label></li>
            <li><input type="checkbox" class="filtrate"checked value="11" id="filtrate_11"><label for="filtrate_11">结算时间</label></li>
            <li><input type="checkbox" class="filtrate"checked value="12" id="filtrate_12"><label for="filtrate_12">操作人</label></li>
        </ul>

        <if condition="checkAuth('Dealer/Finance/exportExcelOperationList')">
            <a href="{:U('exportExcelOperationList')}" class="btn btn-primary btn-xs pull-right" style="margin-right: 10px">导出</a>
        </if>
        总结算金额统计：￥{$total}元
    </div>

    <table class="table table-striped table-bordered table-hover table-condensed text-center">
        <thead>
            <tr>
                <th class="filtrate_1" rowspan="2">ID <!--<input type="checkbox" class="checkAll">--></th>
                <th class="filtrate_2" rowspan="2">线路名称</th>
                <th class="filtrate_3" rowspan="2">团队类型</th>
                <th class="filtrate_4" rowspan="2">线路编号</th>
                <th class="filtrate_13" rowspan="2">团号</th>
                <th class="filtrate_5" rowspan="2">运营商</th>
                <th class="filtrate_6" rowspan="2">下单时间</th>
                <th class="filtrate_7" colspan="3">实际收客人数</th>
                <th class="filtrate_8" colspan="3">结算金额(单价)</th>
                <th class="filtrate_9" rowspan="2">其他费用</th>
                <th class="filtrate_10" rowspan="2">总结算金额</th>
                <th class="filtrate_11" rowspan="2">结算时间</th>
                <th class="filtrate_12" rowspan="2">操作人</th>
            </tr>
            <tr>
                <th class="filtrate_7" >成人</th>
                <th class="filtrate_7" >儿童</th>
                <th class="filtrate_7" >老人</th>
                <th class="filtrate_8" >成人</th>
                <th class="filtrate_8" >儿童</th>
                <th class="filtrate_8" >老人</th>
            </tr>
        </thead>
        <tbody>
        <volist name="list" id="vo">
            <tr >
                <td class="filtrate_1" >{$vo.order_id} <!--<input type="checkbox" class="chk">--></td>
                <td class="filtrate_2">{$vo.line_name}</td>
                <td class="filtrate_3">{$vo.group_type}</td>
                <td class="filtrate_4">{$vo.line_sn}</td>
                <td class="filtrate_13">{$vo.group_num}</td>
                <td class="filtrate_5">{$vo.operator_name}</td>
                <td class="filtrate_6">{$vo.create_time|date="Y-m-d",###}</td>

                <td class="filtrate_7">{$vo.adult_num}</td>
                <td class="filtrate_7">{$vo.child_num}</td>
                <td class="filtrate_7">{$vo.oldMan_num}</td>
                <td class="filtrate_8">{$vo.adult_cost_money}</td>
                <td class="filtrate_8">{$vo.child_cost_money}</td>
                <td class="filtrate_8">{$vo.oldman_cost_money})</td>

                <td class="filtrate_9">{$vo.else_money}</td>
                <td class="filtrate_10">{$vo.close_money}</td>
                <td class="filtrate_11">{$vo.close_time|date="Y-m-d",###}</td>
                <td class="filtrate_12">{$vo.admin2_name}</td>
            </tr>
        </volist>
        <tr>
            <td colspan="17">
                <!--分页样式-->
                <ul class="pagination">
                    {$show}
                </ul>
            </td>
        </tr>
        </tbody>
    </table>

</block>
<block name="js">
<script src=""></script>
<script src="__STATIC__/layui/layui.all.js"></script>
<script src="__STATIC__/layui/layui.js"></script>
<script>
/**
 * 打开订单详情页面
 * @param  {[int]}    orderId     [订单id]
 */

//筛选显示
$('body').on('change','.filtrate',function () {
   var id=$(this).val();
   if($(this).is(':checked')){
        $('.filtrate_'+id).show();
   }else{
       $('.filtrate_'+id).hide();
   }
});


layui.use('laydate', function() {
    var laydate = layui.laydate;
    //常规用法
    laydate.render({
        elem: '#start_time'
    });
    laydate.render({
        elem: '#end_time'
    });
});

</script>
</block>
